﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public static class IEnumerableHelper
    {
        public static bool SafeCheck<T>(this IEnumerable<T> iEnumberable)
        {
            try
            {
                return iEnumberable != null && iEnumberable.Count() > 0;
            }
            catch
            {
                return false;
            }
        }      
    }
}
